﻿using System;
using System.Windows.Forms;
using log4net;
using log4net.Config;
using Peresvet_CMS.Forms;

namespace Peresvet_CMS
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			try
			{
				Application.EnableVisualStyles();
				Application.SetCompatibleTextRenderingDefault(false);
				Application.Run(new frmAdminControlPanel());
			}
			catch (Exception ex)
			{
				XmlConfigurator.Configure();
				var eventLogger = LogManager.GetLogger("Errors");
				var exceptionId = Guid.NewGuid().ToString().Replace("-", "");
				eventLogger.Error("Error: " + exceptionId, ex);
			}
		}
	}
}
